package com.superdp.utils;

/**
 * ClassName: ILock
 * Package: com.superdp.utils
 * Description:
 *
 * @Author: XKing
 * @Create: 2023/7/6 - 15:32
 * @Version: 1.0
 */
public interface ILock {

    /**
     * 尝试获取锁
     * @param time 获取锁的超时时间
     * @return  获取成功返回true反之false
     */
    public boolean tryLock(Long time);

    /**
     * 释放锁
     */
    public void unLock();
}
